﻿using AnesSystem.Models;
using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.Services
{
   public class MenuService:BaseService<MenuService,MenuListModel>
    {
        public IEnumerable<MenuListModel> GetAvailableMenuList()
        {
            return FindAll(Builders<BsonDocument>.Filter.Eq("Flag","available"));
        }

        public IEnumerable<MenuListModel> GetAllMenuList()
        {
            return FindAll();
        }
    }
}
